/**
 * Created by macos on 14-10-11.
 */

var  activeUserClear = require('./ActiveUserClear');

(function(){
  var AutoClearService = {};
  var root = this;

  function clearActiveUser(next) {

      activeUserClear.run(function(error, result){
      if (error) {
        next(error);
      } else {
        next(null, result);
      }
    });
  }

  AutoClearService.run = function() {
    sails.log.info("------------------- AutoClearService --------------------\n");

    async.parallel([
      clearActiveUser
    ], function(error, result){
       if (error) {
         sails.log.error(error);
       }
    });
  }

  module.exports = AutoClearService;
})();